<div class="question">
    <div class="item lz mt20">
        <div class="info">
            <div class="user-cover"><img src="<?= $question->user_cover ?>@!90" alt="用户头像"/></div>
            <div class="user-name">
                <p><span><img src="/assets/frontend/img/share/icon-woman.png"></span><?= $question->user_nickname ?></p>
                <div class="time">12月30日  10:13</div>
            </div>

        </div>

        <div class="content">
            <p class="description"><?= $question->question_content ?></p>
            <div class="tags">
                <span>大油皮</span>
                <span>T字区</span>
                <span>混合肌</span>
                <div class="clear"></div>
            </div>

            <?php if(count($question->question_pics) > 0): ?>
            <ul class="pics">
                <?php $pi=0; foreach($question->question_pics as $pic): ?>
                <?php $class = $pi % 4 == 0 ? 'ml0' : ($pi % 4 == 3 ? 'mr0' : '') ?>
                <li><img class="<?= $class ?>" src="<?= $pic ?>@!120" /></li>
                <?php $pi++ ?>
                <?php endforeach ?>
            </ul>
            <?php endif ?>
            <div class="clear"></div>
            <div class="bottom">
                <div class="left">
                    <img src="/assets/frontend/img/share/icon-comment.png" alt="评论">
                    <span>5000</span>
                    <img src="/assets/frontend/img/share/icon-read.png" alt="阅读量">
                    <span>5000</span>
                </div>
                <div class="collection">
                    <img src="/assets/frontend/img/share/icon-3dot.png" />
                </div>
                <div class="clear"></div>
            </div>

        </div>

    </div>

    <div class="readTitle" style="border-top: 1px solid #f6f3ec;">
        <span style="vertical-align: -webkit-baseline-middle;">~</span>美人儿已阅<span style="vertical-align: -webkit-baseline-middle;">~</span>
    </div>
    <div class="haveRead">
        <img src="http://img.meelier.com/default.png">
        <img src="http://img.meelier.com/user-cover/2015/11/04/16/f5d38eb9bb21ec294ec65a47cfaa7f84.jpg">
        <img src="http://img.meelier.com/user-cover/2015/11/04/16/f5d38eb9bb21ec294ec65a47cfaa7f84.jpg">
        <img src="http://img.meelier.com/user-cover/2015/11/04/16/f5d38eb9bb21ec294ec65a47cfaa7f84.jpg">
        <img src="http://img.meelier.com/user-cover/2015/11/04/16/f5d38eb9bb21ec294ec65a47cfaa7f84.jpg">
        <img src="http://img.meelier.com/user-cover/2015/11/05/13/5d5caf82b7fa5784615303c1b8a423f6.jpg">
    </div>
</div>

<!--专家回复-->
<div class="question expert">
    <div class="mt20 listItem line">
        <span><img src="/assets/frontend/img/share/icon-expert.png"></span><?= $a['user_nickname'] ?>
        专家回复
    </div>
    <div class="item line">
        <div class="user-cover"><img src="http://img.meelier.com/user-cover/2015/11/05/14/c6555cf5005a2b49f3fc3c896b0dcddb.jpg@!90"></div>
        <div class="info">
            <div class="user-name">
                <p><span>一帘幽梦</span><i>美粒专家</i></p>
                <div class="good-at"><label>擅长领域：</label><em>美白、祛斑、丰胸</em></div>
            </div>
        </div>

        <div class="content">
            <p class="description">I say u are so cool</p>
        </div>
    </div>
</div>

<!--网友回复-->
<div class="question">
    <div class="mt20 listItem line">网友回复</div>
    <?php foreach($answers as $a): ?>
    <div class="item line">
        <div class="user-cover"><img src="<?= $a['user_cover'] ?>@!90" /></div>
        <div class="info">
            <div class="user-name">
                <p><span><img src="/assets/frontend/img/share/icon-woman.png"></span><?= $a['user_nickname'] ?></p>
                <div class="time">12月30日  10:13</div>
            </div>
        </div>

        <div class="content">
            <p class="description"><?= $a['answer_content'] ?></p>
        </div>
        <?php if(count($a['answer_pics']) > 0): ?>
        <ul class="pics">
            <?php $pi=0; foreach($a['answer_pics'] as $pic): ?>
            <?php $class = $pi % 4 == 0 ? 'ml0' : ($pi % 4 == 3 ? 'mr0' : '') ?>
            <li><img class="<?= $class ?>" src="<?= $pic ?>@!120" /></li>
            <?php $pi++ ?>
            <?php endforeach ?>
        </ul>
        <?php endif ?>
        <div class="clear"></div>

        <?php if($a['answer_best'] == 1): ?>
        <div class="answer-best"><img src="/assets/frontend/img/share/icon-answer-best.png" /></div>
        <?php endif ?>
    </div>
    <?php endforeach ?>
</div>